
/*****************************************************************************
 *
 * 作   者: 马婷婷 * 创建时间: 2020/12/15 15:51:17 *
 * Copyright (C) 2008 - 鹏业软件公司
 *
 *****************************************************************************/

import {DataPacket, NorDataList} from 'pengesoft-ng-lib';
import {EmployeeDto} from './employeedto.domain';
import {TrainDtos} from './traindtos.domain';
import {SalaryDto} from './salarydto.domain';
import {Rewards} from './rewards.domain';

/**
 * 
 */
export class Archives extends DataPacket {
  EmployeeDto: EmployeeDto;
  TrainDtos: TrainDtos[];
  SalaryDto: SalaryDto;
  Rewards: Rewards[];

  constructor(options: {
    EmployeeDto?: EmployeeDto;
    TrainDtos?: TrainDtos[];
    SalaryDto?: SalaryDto;
    Rewards?: Rewards[];
  } = {}) {
    super();
    this.EmployeeDto = options?.EmployeeDto;
    this.TrainDtos =options.TrainDtos;
    this.SalaryDto = options?.SalaryDto;
    this.Rewards =options?.Rewards
  }
}

/**
 * 列表
 */
export class ArchivesList extends NorDataList<Archives> {

  constructor(options: {
    _Items?: Array<Archives>
  } = {}) {
    super();
    if (options._Items) {
      for (const item of options._Items) {
        this.append(new Archives(item));
      }
    }
  }
}
